"""
7、使用if，编写程序，实现以下功能：
•	从键盘获取用户名、密码
•	如果用户名和密码都正确（预先设定一个用户名和密码），那么就显示“欢迎进入xxx的世界”，否则提示密码或者用户名错误
name = "lebo"
password =123456
nameone = str(input("请输入用户名：\n"))
passwordone = int(input("请输入密码：\n"))
if(name == nameone and password == passwordone):
    print("欢迎进入xxx的世界")
else:
    print("用户名密码错误请重新输入")
8、有能力的同学可以用循环的方式做出石头剪刀布的游戏并且输入中文
"""
import random
Player = int(input("请玩家输入石头（0）剪刀（1）布（2）\n"))
Company = random.randint(0,2)
print("玩家 : %d 电脑 : %d" % (Player,Company))
if(Player != 0) and (Player != 1) and (Player != 2):
    print("输入有误请重新输入")
elif(Player == 0 and Company == 1) or (Player == 1 and Company == 2) or (Player == 2 or Company == 0):
    print("玩家win")
elif(Player == Company):
    print("平局")
else:
    print("玩家lose")

i = 0
while i < 5:
    print('haha')
    i += 1